package com.powerlogic.rhtutorial.entity;


import com.powerlogic.jcompany.domain.validation.PlcUnifiedValidation;
import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import javax.persistence.Id;
import javax.validation.constraints.Size;
import javax.persistence.GenerationType;
import javax.persistence.MappedSuperclass;
import com.powerlogic.jcompany.config.domain.PlcReference;
import javax.persistence.GeneratedValue;

@MappedSuperclass
@PlcUnifiedValidation
public abstract class Uf extends AppBaseEntity {

	
	@Id 
 	@GeneratedValue(strategy=GenerationType.AUTO, generator = "SE_UF")
	@Column(nullable=false,length=5)
	private Long id;


	
	@NotNull
	@Size(max = 40)
	@Column
	@PlcReference(testDuplicity=true)
	private String nome;
	
	@NotNull
	@Size(max = 2)
	@Column
	private String sigla;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id=id;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome=nome;
	}

	public String getSigla() {
		return sigla;
	}

	public void setSigla(String sigla) {
		this.sigla=sigla;
	}

}
